//
//  TLPhoneModel.swift
//  TLiOS26LiquidGlassDemo
//
//  Created by jiayin on 2025/7/11.
//

import UIKit

@Observable class TLPhoneModel {
    var name: String
    var osName: String

    init(name: String, osName: String) {
        self.name = name
        self.osName = osName
    }

    static func getPhone() -> [TLPhoneModel] {
        let phoneNames = ["iPhone 16", "iPhone 16 Plus", "iPhone 16 Pro", "iPhone 16 Pro Max"]
        let osNames = ["iOS 18", "iOS 18", "iOS 18", "iOS 18"]
        var phoneModels = [TLPhoneModel]()
        for i in 0 ..< phoneNames.count {
            let phoneModel = TLPhoneModel(name: phoneNames[i], osName: osNames[i])
            phoneModels.append(phoneModel)
        }
        return phoneModels
    }
}
